﻿using MyAuthCore.Entity.Base;
using MyAuthCore.Entity.Enums;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace MyAuthCore.Entity.Beans
{
    public class File : TreeEntity
    {
        /// <summary>
        /// 文件名
        /// </summary>
        [SugarColumn(IsNullable = false, Length = 21)]
        public string Name { get; set; }
        /// <summary>
        /// 1，添加 2，修改 3，删除
        /// </summary>
        public UpdateType UpdateType { get; set; }
        /// <summary>
        /// 文件上传者
        /// </summary>
        [SugarColumn(IsNullable = false, Length = 21)]
        public string UploadUserId { get; set; } = string.Empty;
        /// <summary>
        /// 是否目录 0否  1是
        /// </summary>
        public bool IsDir { get; set; } = false;
        /// <summary>
        /// 文件大小
        /// </summary>
        [SugarColumn(IsNullable = false, Length = 21)]
        public long Size { get; set; } = 0;
        /// <summary>
        /// 下载路径
        /// </summary>
        [SugarColumn(IsNullable = false, Length = 21)]
        public string DownloadPath { get; set; } = string.Empty;
        /// <summary>
        /// 文件上传时间
        /// </summary>
        public DateTime UpdateTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 是否可下载
        /// </summary>
        public bool Downloadable { get; set; } = false;
        /// <summary>
        /// 1 议程文件　2 议题文件
        /// 3 纪要文件  4 临时文件
        /// 5 批注文件  6 签到文件
        /// 7 电子白板  8 直播链接
        /// 9 点播链接  10 排位链接   11 手写批注
        /// </summary>
        public FileType FileType { get; set; } = FileType.Defualt;
    }
   
}
